<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      var i
      console.log(typeof i)

      i = 100
      console.log(typeof i)

      i = 99.5
      console.log(typeof i)

      i = 'aaa'
      console.log(typeof i)

      i = false
      console.log(typeof i)

      //创建一个数组
      i = new Array()
      console.log(typeof i)

      //创建一个日期
      i = new Date()
      console.log(typeof i)
    </script>
  </head>
  <body>
    <h1>js的数据类型</h1>
  </body>
</html>
